﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Exceptions
{
    /// <summary>
    /// Exception used when invalid credentials are specified.
    /// </summary>
    public class InvalidCredentialsException : WebExceptionBase
    {
        public InvalidCredentialsException()
            : base("The credentials provided were incorrect") { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get
            {
                return System.Net.HttpStatusCode.Forbidden;
            }
        }

        public override string ErrorCode
        {
            get
            {
                return "100";
            }
        }
    }
}
